import request from '@/utils/request'

export function generateQrcode(params) {
  return request({
    url: process.env.ADMIN_API + '/blog/generateQrcode',
    method: 'post',
    data: params
  })
}

export function syncUpdate(params) {
  return request({
    url: process.env.ADMIN_API + '/blog/syncUpdate',
    method: 'post',
    data: params
  })
}

export function syncUpdateWp(params) {
  return request({
    url: process.env.ADMIN_API + '/blog/syncUpdateWp',
    method: 'post',
    data: params
  })
}

export function getBlogWpSortList(params) {
  return request({
    url: process.env.ADMIN_API + '/blogSort/getWpList',
    method: 'post',
    data: params
  })
}

export function getPictureSortList(params) {
  return request({
    url: process.env.ADMIN_API + '/pictureSort/getList',
    method: 'post',
    data: params
  })
}



export function addPictureSort(params) {
  return request({
    url: process.env.ADMIN_API + '/pictureSort/add',
    method: 'post',
    data: params
  })
}

export function editPictureSort(params) {
  return request({
    url: process.env.ADMIN_API + '/pictureSort/edit',
    method: 'post',
    data: params
  })
}

export function deletePictureSort(params) {
  return request({
    url: process.env.ADMIN_API + '/pictureSort/delete',
    method: 'post',
    data: params
  })
}

export function stickPictureSort(params) {
  return request({
    url: process.env.ADMIN_API + '/pictureSort/stick',
    method: 'post',
    data: params
  })
}

export function getPictureSortByUid(params) {
  return request({
    url: process.env.ADMIN_API + '/pictureSort/getPictureSortByUid',
    method: 'post',
    data: params
  })
}
